<?php
	class htmlControl extends Control{

		function index(){
			if($this->html_create("./index/control/index","index","index.html")){
				$this->success("生成首页成功");
			}else{
				$this->error("生成首页失败");
			}
		}

		// function category(){
		// 	$db = M('news');
		// 	$row = $db->findall();
		// 	foreach($row as $k=>$v){
		// 		$row[$k]["html_file"] = "htmls/htm/{$v['id']}.html";
		// 	}
		// 	if($this->html_create("./index/control/index","l",$row)){
		// 		$this->success("创建列表页成功");
		// 	}
		// }



	}
?>